package org.example.minsuapi.controller;


import org.example.minsuapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.example.minsuapi.service.districtnumService;
import  org.example.minsuapi.pojo.district_num;
import java.util.List;

@RestController
public class districtnumController {
    @Autowired
    private districtnumService districtnumService;
    @GetMapping("/queryAlldistrictnum")
    public ResponseResult<List<district_num>> queryAlldistrictnum(){
        List<district_num>pf =districtnumService.queryAlldistrictnum();
        return new ResponseResult<>("200","查询成功",pf);
    }
}
